package org.jweb.demo.trans.form;

import java.util.ArrayList;
import java.util.List;

import org.jweb.core.bean.BaseForm;
import org.jweb.core.bean.annotation.Mapping;
import org.jweb.demo.entity.DemoGoodsTypeDicEntity;

@Mapping(entityClass=DemoGoodsTypeDicEntity.class)
public class DemoGoodsTypeDicSaveForm extends BaseForm{
	@Mapping
	private String id;
	@Mapping
	private String name;
	@Mapping
	private String code;
	@Mapping
	private String parent;
	@Mapping("goodsSet")
	private List<DemoGoodsSaveForm> goodsList = new ArrayList<DemoGoodsSaveForm>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public List<DemoGoodsSaveForm> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<DemoGoodsSaveForm> goodsList) {
		this.goodsList = goodsList;
	}
	
}
